[DNS Records] Create a new DNS record
Create a new DNS record within a zone. Supported record types include A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, and more. The record is immediately propagated to Cloudflare’s global network. Certain record types have specific format requirements for their content field (e.g., MX requires priority, SRV requires priority/weight/port).
Authorizations
Use Authorization: Bearer <token> header. Token can be a JWT token or an API key (format: sk-onetsolutions-...).
Path Parameters
The unique identifier (UUID) of the DNS zone
Body
A- AAAAA- AAAACNAME- CNAMEMX- MXTXT- TXTNS- NSSRV- SRVCAA- CAAPTR- PTRSOA- SOA
A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, PTR, SOA 253Time to live in seconds: 1 means automatic. Forced to automatic on a proxied record.
0 <= x <= 65535Route the traffic through the edge network. Only A, AAAA and CNAME records can be proxied.
Response
DNS record created successfully
A- AAAAA- AAAACNAME- CNAMEMX- MXTXT- TXTNS- NSSRV- SRVCAA- CAAPTR- PTRSOA- SOA
A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, PTR, SOA 253The organization's instance this A or AAAA record points to, when its address belongs to one
0 <= x <= 42949672950 <= x <= 4294967295
